using UnityEngine;
namespace NL.Advanced
{
    public class ActiverDelay : MonoBehaviour
    {
        public float Delay;
        public GameObject[] Who;
        // Start is called before the first frame update

        private void Awake()
        {
            if (Who == null) return;

            foreach (var w in Who)
            {
                w?.SetActive(false);
            }
        }
        void Start()
        {
            Invoke("_Do", Delay);
        }

        void _Do()
        {
            if (Who == null) return;

            foreach (var w in Who)
            {
                w?.SetActive(true);
            }
        }
    }

}
